package cn.zc.examination.service.controller;


import cn.tools.core.base.R;
import cn.zc.examination.entity.Dto.ExaminationClassifyAndBankDto;
import cn.zc.examination.service.service.ExaminationClassifyAndBankService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 考试类别对应题库表 前端控制器
 * </p>
 *
 * @author keno
 * @since 2022-02-22
 */
@Api(tags = "后台发布考试接口")
@RestController
@RequestMapping("/examination")
public class ExaminationClassifyAndBankController {

    @Resource
    private ExaminationClassifyAndBankService examinationClassifyAndBankService;

    /**
     * 创建考试类目接口
     * @param examinationClassifyAndBankDto
     * @return
     */
    @ApiOperation(value = "创建考试类目接口")
    @PostMapping("/admin/create/ExaminationClassifyAndBank")
    private R createExaminationClassifyAndBank(@RequestBody ExaminationClassifyAndBankDto examinationClassifyAndBankDto){
        examinationClassifyAndBankService.createExaminationClassifyAndBank(examinationClassifyAndBankDto);
        return R.success();
    }


    /**
     * 发布考试考题
     * @return
     */
    @ApiOperation(value = "发布考试，并通知对应科目学生")
    @PostMapping("/admin/push/Examination")
    private R<Object> pushExamination(){


        return R.success("");
    }


}

